#ifndef MEMEMTO_H
#define MEMEMTO_H
#include <iostream>
#include "javabean.h"
using namespace std;

class MememTo{
PropertyBuilderByName(string,name,private)
PropertyBuilderByName(int,age,private)
public:
    MememTo(string name,int age):m_name(name),m_age(age){

    }
};

class Person{
    PropertyBuilderByName(string,name,private)
    PropertyBuilderByName(int,age,private)
public:
    MememTo* createMememTo(){
        return new MememTo(m_name,m_age);
    }
    void setMemto(MememTo *memto){
        m_name=memto->getname();
        m_age=memto->getage();
    }
};

#endif // MEMEMTO_H
